<%@ page contentType="text/html;charset=UTF-8" language="java" %>

<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  <title>后台系统登录</title>
  <link rel="stylesheet" href="css/login.css">
  <script type="text/javascript" src="js/jquery.min.js"></script>
  <script type="text/javascript" src="js/index.js"></script>
  <script src="./lib/layui/layui.js" charset="utf-8"></script>
    <style>
        .layui-form-label{
            font-size: 20px;

        }
    </style>
</head>
<body class="login-bg">
    <canvas id="fullstarbg">你的浏览器不支持canvas标签</canvas>
    <div class="login">
        <div class="message">学员管理系统登录</div>
        <div id="darkbannerwrap"></div>   
        <form method="post" action="/login" class="layui-form" >
            <div class="layui-form-item">
                <label class="layui-form-label">请选择</label>
                <div class="layui-input-block">
                    <select name="roel" lay-verify="required" >
                        <option value="管理员">管理员</option>
                        <option value="教师">教师</option>
                        <option value="学生">学生</option>
                    </select>
                </div>
            </div>

            <input name="no" placeholder="用户名"  type="text" lay-verify="required" class="layui-input" >
            <hr class="hr15">
            <input name="pwd" lay-verify="required" placeholder="密码"  type="password" class="layui-input">
            <hr class="hr15">
            <input value="登录" lay-submit lay-filter="login" style="width:100%;" type="submit">
            <hr class="hr20" >
        </form>
        <h2>${ok}</h2>
    </div>
    <script>
            layui.use(['form'],
            function() {
                $ = layui.jquery;
                var form = layui.form(),
                layer = layui.layer;

                //监听提交
                // form.on('submit(login)',
                // function(data) {
                //     console.log(data);
                //     layer.alert(JSON.stringify(data.field), {
                //       title: '最终的提交信息'
                //     },function  () {
                //         location.href = "./index.html";
                //     })
                //     return false;
                // });

            });

        </script>


    <!-- 底部结束 -->
    
</body>
</html>